package com.easa.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Laboratorymsg {
    private int lid;
    private String lname;
    private String lintroduce;
    private Integer lcapacity;
    private String lresponsible;
    private Integer lstatus;

    @Id
    @Column(name = "lid")
    public int getLid() {
        return lid;
    }

    public void setLid(int lid) {
        this.lid = lid;
    }

    @Basic
    @Column(name = "lname")
    public String getLname() {
        return lname;
    }

    public void setLname(String lname) {
        this.lname = lname;
    }

    @Basic
    @Column(name = "lintroduce")
    public String getLintroduce() {
        return lintroduce;
    }

    public void setLintroduce(String lintroduce) {
        this.lintroduce = lintroduce;
    }

    @Basic
    @Column(name = "lcapacity")
    public Integer getLcapacity() {
        return lcapacity;
    }

    public void setLcapacity(Integer lcapacity) {
        this.lcapacity = lcapacity;
    }

    @Basic
    @Column(name = "lresponsible")
    public String getLresponsible() {
        return lresponsible;
    }

    public void setLresponsible(String lresponsible) {
        this.lresponsible = lresponsible;
    }

    @Basic
    @Column(name = "lstatus")
    public Integer getLstatus() {
        return lstatus;
    }

    public void setLstatus(Integer lstatus) {
        this.lstatus = lstatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Laboratorymsg that = (Laboratorymsg) o;

        if (lid != that.lid) return false;
        if (lname != null ? !lname.equals(that.lname) : that.lname != null) return false;
        if (lintroduce != null ? !lintroduce.equals(that.lintroduce) : that.lintroduce != null) return false;
        if (lcapacity != null ? !lcapacity.equals(that.lcapacity) : that.lcapacity != null) return false;
        if (lresponsible != null ? !lresponsible.equals(that.lresponsible) : that.lresponsible != null) return false;
        if (lstatus != null ? !lstatus.equals(that.lstatus) : that.lstatus != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = lid;
        result = 31 * result + (lname != null ? lname.hashCode() : 0);
        result = 31 * result + (lintroduce != null ? lintroduce.hashCode() : 0);
        result = 31 * result + (lcapacity != null ? lcapacity.hashCode() : 0);
        result = 31 * result + (lresponsible != null ? lresponsible.hashCode() : 0);
        result = 31 * result + (lstatus != null ? lstatus.hashCode() : 0);
        return result;
    }
}
